import request from '@/utils/request'
import { requestPath } from '@/utils/global.js'

export function getLoginCode(params) { //获取验证码
    return request({
        url: `${requestPath.member}/permissions/permissions/code`,
        method: 'get',
        params
    })
}

export function toLogin(data) { //手机号快速登录
    return request({
        url: `${requestPath.member}/permissions/register/p-member/phone`,
        method: 'post',
        data
    })
}